home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Speccy ClassiX 1998
/
Speccy ClassiX 98.iso
/
amiga_system
/
the_aminet
/
dev
/
gcc
/
ixemulsrc.lha
/
ixemul-41.4
/
gnulib-soft-float
/
modsi3.c
< prev
next >
Wrap
C/C++ Source or Header
|
1994-08-19
|
203b
|
17 lines
#include "common.h"
SItype
__modsi3 (a, b)
SItype a, b;
{
unsigned SItype q, r;
int neg = (a < 0);
if (a < 0) a = -a;
if (b < 0) b = -b;
divmodu (q, r, a, b);
return neg ? -r : r;
}